<?php require_once("admin-header.php");
$myid=$_SESSION['user_id'];
$cid=intval($_GET['cid']);
$sql="UPDATE contest SET private=1-private WHERE contest_id=$cid and author_id='$myid'";
mysql_query($sql);
?>
<script language=javascript>
	history.go(-1);
</script>

